determine the domain and range of inverse functions